package cn.itsuorce.utils;

import java.util.List;

/**
 * 封装分页查询的数据（包含总行数和当前页的数据）
 * @param <T>
 */
public class Page<T> {
    //总行数
    private Long total;
    //当前页数据
    private List<T> rows;

    public Page() {
    }

    public Page(Long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
